<%--
 *  File:    zylClearinfo.jsp
 *  @Author: zahirzhong
 *  Date:    2012/8/30
 *
 *  Copyright (C) 2000 - 2002 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="java.text.*"%>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.*" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>


<% //--------------------------------------  setting logger --%>


<% //--------------------------------------  variant and initialization --%>
<%
	String strModuleName = "COM";
 	String strTableName = "v_plancheck_clearinfo";
	String privilegeCode = "FP0203";    
    String contextPath = request.getContextPath(); 
%>

<% //--------------------------------------  include files list --%>



<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>

<html>
<head>
<title>ClearMasterData</title>
<PageFlow:CheckPageFlow pageName="p_zylclearinfo2"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/FuncLib.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>

<%@ include file="/inc/SummaryDivision.inc" %>

<% //--------------------------------------  output variant from pageflow --%>
<%
  	Vector totalsummary = (Vector)pageContext.getAttribute("totalsummary");
  	if(totalsummary == null)
  	{
  		totalsummary = new Vector();
  	}
   


%>

<script language="JavaScript" >
function page_summary(actionvalue,orderbyname){
  	 var editform = summaryPrepare(cform,actionvalue,orderbyname);
 	 editform.action = "zylClearinfo.jsp?<%= OvalTools.randomURL() %>";
 	 editform.target = "_self";
 	 isRunning = true;
 	 editform.submit();
}
function pageback()
{location.href="YearPlanClear.jsp?<%= OvalTools.randomURL() %>";

}

</script>

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="cform" method="post" action="<%=contextPath %>/Dispatcher">
<input type="hidden" name="pagename" value="p_zylclearinfo2">
<input type="hidden" name="actionname">
<custom:hidden property="configcode" changedName="nconfigcode"/> 
<%@ include file="/inc/PageLocation.inc" %>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<!--      <tr>-->
<!--        <td>-->
<!--          <table width="100%" border="0" cellspacing="0">-->
<!--            <%@ include file="/inc/SummarySearch.inc" %>-->
<!--          </table>-->
<!--        </td>-->
<!--      </tr>-->
</table>
<table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
        <tr class="deepblue-left">
          <td class="title_center" width="5%"><a href="javascript:page_summary('orderby','configcode')"><%= label.getLabelName("L_GroupNumber") %></a></td>
          <td class="title_center" width="80%"><a href="javascript:page_summary('orderby','msn')"><%= label.getLabelName("L_Description") %></a></td>
          <td class="title_center" width="15%"><a href="javascript:page_summary('orderby','createdate')"><%= label.getLabelName("L_CreateTime") %></a></td>
          
        </tr>
		 <% //--------------------------------------  default value definition --%>
          	<%
            	int i = 0;
             	String strClassType = new String();
          	%>

          	<% //--------------------------------------  loop results --%>
		<logic:iterate id="onerow" collection="<%= totalsummary %>" indexId="idx">
           	<%
            	HashMap tempMap = (HashMap)pageContext.getAttribute("onerow");
            	if(i%2 == 1)
            	{
              		strClassType = "td-listrom";
            	}else{
              		strClassType = "";
            	}
            	i++;
            	SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        		HashMap  myrow=(HashMap)onerow;
        		String displayStartDate;
        		if(myrow.get("createdate") ==null){
        			displayStartDate = null;
        			
        		}else {
        		
            	Date startdate=((Date)myrow.get("createdate"));
            	 displayStartDate = sdf.format(startdate);
        		}
        		
          	%>
          	<tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='<%=JspHelper.filterNull( strClassType )%>'"  class="none">
          		
				<td class="title_center">
				<%=JspHelper.filterNull( tempMap.get("configcode") )%>
				</td>
				<td class="title_center">
					<custom:write name="onerow" property="msn"  nbsp="true"/>
				</td>
            	<td class="title_center"><%=displayStartDate %>
            	</td>
            	
     		 </tr>
     	 </logic:iterate>
      
       <%@ include file="/inc/SummaryAction.inc" %>
     <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td class="summary_top"></td>
        </tr>
       
        
          <tr>
           <td height="49" class="td_center"> <a onclick="javascript:pageback();"><custom:button type="1" label="L_Back" imgsrc="delete.gif" border="0" style="width:60"  /></a></td>
        </tr>
        
     </table>
</table>
</form>
</body>
</html>